package com.surveillance.DAO;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.surveillance.entities.Servicee;
import com.surveillance.util.CustomHibernateDaoSupport;

@Repository("ServiceDAO")
public class ServiceDao extends BaseDao<Servicee> {
	public Servicee getServiceByNom(String nom) {
		return (Servicee) getHibernateTemplate().find(
				"from Servicee where nom='" + nom + "'").get(0);
	}

}
